The Official micro:bit User Guide


Example Code



The Official micro:bit User Guide includes numerous projects, the source code

for which is reproduced in this archive. Each file is designed to be loaded

into the corresponding code editor by dragging and dropping, or by opening the

file in a text editor like Microsoft's Notepad, copying the pasting the content

into the editor.



Note that only JavaScript and Python source code is included. For those working

with JavaScript Blocks, the JavaScript code should be loaded into the editor

then switched to JavaScript Blocks mode.



For those with a copy of the book, the same source code can be found printed

in Appendices A through C inclusive.



If you have any problems with the code presented here, please feel free to get

in touch via:

https://freelance.halfacree.co.uk



Happy experimenting!



-Gareth Halfacree



CHAPTERS WITH CODE:

 - Chapter 5, JavaScript Blocks & Chapter 6, JavaScript (shared code files)

 - Chapter 7, Python

 - Chapter 8, The Wireless BBC micro:bit

 - Chapter 9, The BBC micro:bit and the Raspberry Pi

 - Chapter 10, Building Circuits

 - Chapter 12, The Wearable BBC micro:bit

